home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17525 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 65 6e 67 | 2e 63 6f 6e 76 65 78 2e |news.eng|.convex.|
|00000030| 63 6f 6d 21 61 72 63 6f | 21 75 73 65 6e 65 74 0a |com!arco|!usenet.|
|00000040| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 4c 65 61 63 |From: Br|ian Leac|
|00000050| 68 20 3c 6c 61 73 62 66 | 6c 40 61 61 69 2e 61 72 |h <lasbf|l@aai.ar|
|00000060| 63 6f 2e 63 6f 6d 3e 0a | 53 75 62 6a 65 63 74 3a |co.com>.|Subject:|
|00000070| 20 52 65 3a 20 65 61 73 | 79 20 63 2b 2b 20 71 75 | Re: eas|y c++ qu|
|00000080| 65 73 74 69 6f 6e 0a 58 | 2d 4e 6e 74 70 2d 50 6f |estion.X|-Nntp-Po|
|00000090| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 31 33 36 2e |sting-Ho|st: 136.|
|000000a0| 32 32 36 2e 31 31 36 2e | 31 0a 43 6f 6e 74 65 6e |226.116.|1.Conten|
|000000b0| 74 2d 54 79 70 65 3a 20 | 74 65 78 74 2f 70 6c 61 |t-Type: |text/pla|
|000000c0| 69 6e 3b 20 63 68 61 72 | 73 65 74 3d 75 73 2d 61 |in; char|set=us-a|
|000000d0| 73 63 69 69 0a 54 6f 3a | 20 4a 6f 68 6e 20 4a 6f |scii.To:| John Jo|
|000000e0| 73 65 70 68 20 4e 65 77 | 62 69 67 69 6e 20 3c 30 |seph New|bigin <0|
|000000f0| 37 39 35 31 39 40 62 75 | 64 2e 63 63 2e 73 77 69 |79519@bu|d.cc.swi|
|00000100| 6e 2e 65 64 75 2e 61 75 | 3e 0a 4d 65 73 73 61 67 |n.edu.au|>.Messag|
|00000110| 65 2d 49 44 3a 20 3c 33 | 31 37 32 42 34 41 39 2e |e-ID: <3|172B4A9.|
|00000120| 36 44 46 46 40 61 61 69 | 2e 61 72 63 6f 2e 63 6f |6DFF@aai|.arco.co|
|00000130| 6d 3e 0a 53 65 6e 64 65 | 72 3a 20 75 73 65 6e 65 |m>.Sende|r: usene|
|00000140| 74 40 6e 65 77 73 2e 61 | 72 63 6f 2e 63 6f 6d 0a |t@news.a|rco.com.|
|00000150| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|00000160| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|00000170| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 41 52 |Organiza|tion: AR|
|00000180| 43 4f 20 41 6c 61 73 6b | 61 20 49 6e 63 2e 0a 52 |CO Alask|a Inc..R|
|00000190| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 33 31 36 39 |eference|s: <3169|
|000001a0| 30 31 44 41 2e 33 31 33 | 38 43 36 37 37 40 61 62 |01DA.313|8C677@ab|
|000001b0| 6c 65 63 6f 6d 2e 6e 65 | 74 3e 20 3c 36 36 57 32 |lecom.ne|t> <66W2|
|000001c0| 35 74 35 55 6f 4e 42 40 | 6a 74 68 2e 70 69 6e 67 |5t5UoNB@|jth.ping|
|000001d0| 2e 64 65 3e 20 3c 50 69 | 6e 65 2e 4f 53 46 2e 33 |.de> <Pi|ne.OSF.3|
|000001e0| 2e 39 31 2e 39 36 30 34 | 31 31 30 39 32 39 34 35 |.91.9604|11092945|
|000001f0| 2e 32 30 39 35 38 43 2d | 31 30 30 30 30 30 40 62 |.20958C-|100000@b|
|00000200| 75 64 2e 63 63 2e 73 77 | 69 6e 2e 65 64 75 2e 61 |ud.cc.sw|in.edu.a|
|00000210| 75 3e 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |u>.Mime-|Version:|
|00000220| 20 31 2e 30 0a 44 61 74 | 65 3a 20 4d 6f 6e 2c 20 | 1.0.Dat|e: Mon, |
|00000230| 31 35 20 41 70 72 20 31 | 39 39 36 20 32 30 3a 34 |15 Apr 1|996 20:4|
|00000240| 32 3a 31 37 20 47 4d 54 | 0a 58 2d 4d 61 69 6c 65 |2:17 GMT|.X-Maile|
|00000250| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 32 2e 30 20 28 |r: Mozil|la 2.0 (|
|00000260| 58 31 31 3b 20 49 3b 20 | 48 50 2d 55 58 20 41 2e |X11; I; |HP-UX A.|
|00000270| 30 39 2e 30 35 20 39 30 | 30 30 2f 37 35 35 29 0a |09.05 90|00/755).|
|00000280| 0a 4a 6f 68 6e 20 4a 6f | 73 65 70 68 20 4e 65 77 |.John Jo|seph New|
|00000290| 62 69 67 69 6e 20 77 72 | 6f 74 65 3a 0a 3e 20 0a |bigin wr|ote:.> .|
|000002a0| 3e 20 4f 6e 20 39 20 41 | 70 72 20 31 39 39 36 2c |> On 9 A|pr 1996,|
|000002b0| 20 4a 65 6e 73 20 54 68 | 65 69 73 65 6e 20 77 72 | Jens Th|eisen wr|
|000002c0| 6f 74 65 3a 0a 3e 20 0a | 3e 20 3e 20 59 6f 75 20 |ote:.> .|> > You |
|000002d0| 73 68 6f 75 6c 64 20 62 | 65 20 72 69 67 68 74 2e |should b|e right.|
|000002e0| 20 43 6f 6e 73 74 72 75 | 63 74 6f 72 73 20 61 72 | Constru|ctors ar|
|000002f0| 65 20 63 61 6c 6c 65 64 | 20 69 6d 70 6c 69 63 69 |e called| implici|
|00000300| 74 6c 79 20 77 68 65 6e | 20 61 6e 20 6f 62 6a 65 |tly when| an obje|
|00000310| 63 74 20 6f 66 0a 3e 20 | 3e 20 74 68 69 73 20 63 |ct of.> |> this c|
|00000320| 6c 61 73 73 20 69 73 20 | 63 72 65 61 74 65 64 2e |lass is |created.|
|00000330| 20 50 65 72 68 61 70 73 | 20 79 6f 75 72 20 63 6f | Perhaps| your co|
|00000340| 6e 73 74 72 75 63 74 6f | 72 20 68 61 73 6e 27 74 |nstructo|r hasn't|
|00000350| 20 74 68 65 20 73 61 6d | 65 20 70 61 72 61 6d 65 | the sam|e parame|
|00000360| 74 65 72 0a 3e 20 3e 20 | 6c 69 73 74 20 74 68 61 |ter.> > |list tha|
|00000370| 6e 20 74 68 65 20 6f 6e | 65 20 79 6f 75 72 20 61 |n the on|e your a|
|00000380| 72 65 20 75 73 69 6e 67 | 20 74 6f 20 63 72 65 61 |re using| to crea|
|00000390| 74 65 20 74 68 65 20 6f | 62 6a 65 63 74 2e 0a 3e |te the o|bject..>|
|000003a0| 20 3e 0a 3e 20 2e 2e 2e | 2e 53 6f 6d 65 74 69 6d | >.> ...|.Sometim|
|000003b0| 65 73 2e 2e 2e 0a 3e 20 | 69 66 20 79 6f 75 20 68 |es....> |if you h|
|000003c0| 61 76 65 20 61 20 63 6c | 61 73 73 20 6d 79 63 6c |ave a cl|ass mycl|
|000003d0| 61 73 73 20 77 69 74 68 | 20 61 20 63 6f 6e 73 74 |ass with| a const|
|000003e0| 72 75 63 74 6f 72 20 61 | 6e 64 20 79 6f 75 20 64 |ructor a|nd you d|
|000003f0| 6f 0a 3e 20 0a 3e 20 6d | 79 63 6c 61 73 73 20 2a |o.> .> m|yclass *|
|00000400| 61 3b 0a 3e 20 61 3d 6e | 65 77 20 6d 79 63 6c 61 |a;.> a=n|ew mycla|
|00000410| 73 73 5b 35 5d 3b 0a 3e | 20 0a 3e 20 74 68 65 20 |ss[5];.>| .> the |
|00000420| 63 6f 6e 73 74 72 75 63 | 74 6f 72 20 69 73 20 6e |construc|tor is n|
|00000430| 6f 74 20 63 61 6c 6c 65 | 64 20 66 6f 72 20 65 76 |ot calle|d for ev|
|00000440| 65 72 79 20 6d 65 6d 62 | 65 72 20 28 61 5b 30 5d |ery memb|er (a[0]|
|00000450| 2c 20 61 5b 31 5d 2e 2e | 29 0a 3e 20 44 6f 65 73 |, a[1]..|).> Does|
|00000460| 20 74 68 69 73 20 68 65 | 6c 70 3f 0a 3e 20 20 4e | this he|lp?.> N|
|00000470| 65 77 62 73 0a 0a 4a 6f | 68 6e 2c 0a 0a 49 20 61 |ewbs..Jo|hn,..I a|
|00000480| 6d 20 61 66 72 61 69 64 | 20 79 6f 75 20 6d 61 64 |m afraid| you mad|
|00000490| 65 20 61 20 6d 69 73 74 | 61 6b 65 20 68 65 72 65 |e a mist|ake here|
|000004a0| 2e 20 54 68 65 20 64 65 | 66 61 75 6c 74 20 63 6f |. The de|fault co|
|000004b0| 6e 73 74 72 75 63 74 6f | 72 0a 69 73 20 63 61 6c |nstructo|r.is cal|
|000004c0| 6c 65 64 20 66 6f 72 20 | 65 61 63 68 20 61 72 72 |led for |each arr|
|000004d0| 61 79 20 65 6c 65 6d 65 | 6e 74 2e 20 49 66 20 74 |ay eleme|nt. If t|
|000004e0| 68 65 72 65 20 69 73 20 | 6e 6f 20 64 65 66 61 75 |here is |no defau|
|000004f0| 6c 74 0a 63 6f 6e 73 74 | 72 75 63 74 6f 72 2c 20 |lt.const|ructor, |
|00000500| 74 68 65 20 61 72 72 61 | 79 20 61 6c 6c 6f 63 61 |the arra|y alloca|
|00000510| 74 69 6f 6e 20 69 73 20 | 6e 6f 74 20 61 6c 6c 6f |tion is |not allo|
|00000520| 77 65 64 2e 0a 0a 43 68 | 65 63 6b 20 6f 75 74 20 |wed...Ch|eck out |
|00000530| 43 2b 2b 20 50 72 69 6d | 65 72 20 32 6e 64 20 45 |C++ Prim|er 2nd E|
|00000540| 64 69 74 69 6f 6e 2c 20 | 62 79 20 53 74 61 6e 6c |dition, |by Stanl|
|00000550| 65 79 20 42 2e 20 4c 69 | 70 70 6d 61 6e 2c 0a 41 |ey B. Li|ppman,.A|
|00000560| 64 64 69 73 6f 6e 20 57 | 65 73 6c 65 79 2c 20 49 |ddison W|esley, I|
|00000570| 53 42 4e 20 30 2d 32 30 | 31 2d 35 34 38 34 38 2d |SBN 0-20|1-54848-|
|00000580| 38 20 50 67 20 32 38 37 | 2e 0a 0a 4d 6f 72 65 20 |8 Pg 287|...More |
|00000590| 45 66 66 65 63 74 69 76 | 65 20 43 2b 2b 2c 20 53 |Effectiv|e C++, S|
|000005a0| 63 6f 74 74 20 4d 65 79 | 65 72 73 2c 20 41 64 64 |cott Mey|ers, Add|
|000005b0| 69 73 6f 6e 20 57 65 73 | 6c 65 79 0a 49 53 42 4e |ison Wes|ley.ISBN|
|000005c0| 20 30 2d 32 30 31 2d 36 | 33 33 37 31 2d 58 20 50 | 0-201-6|3371-X P|
|000005d0| 67 20 31 39 2c 32 30 2c | 20 49 74 65 6d 20 34 3a |g 19,20,| Item 4:|
|000005e0| 20 41 76 6f 69 64 20 67 | 72 61 74 75 69 74 6f 75 | Avoid g|ratuitou|
|000005f0| 73 0a 64 65 66 61 75 6c | 74 20 63 6f 6e 73 74 72 |s.defaul|t constr|
|00000600| 75 63 74 6f 72 73 0a 0a | 50 6c 65 61 73 65 20 66 |uctors..|Please f|
|00000610| 6f 72 77 61 72 64 20 74 | 68 69 73 20 74 6f 20 4a |orward t|his to J|
|00000620| 65 6e 73 20 69 66 20 79 | 6f 75 20 73 74 69 6c 6c |ens if y|ou still|
|00000630| 20 68 61 76 65 20 68 69 | 73 20 0a 65 6d 61 69 6c | have hi|s .email|
|00000640| 20 61 64 64 72 65 73 73 | 2e 0a 0a 0a 2d 42 72 69 | address|....-Bri|
|00000650| 61 6e 20 3a 2d 29 0a 6c | 61 73 62 66 6c 40 61 61 |an :-).l|asbfl@aa|
|00000660| 69 2e 61 72 63 6f 2e 63 | 6f 6d 0a |i.arco.c|om. |
+--------+-------------------------+-------------------------+--------+--------+